package com.jimmy.nonweb.ext;

import java.time.Instant;

import com.fasterxml.jackson.annotation.JsonProperty;

import lombok.Data;

@Data
public class Account {

    private Long id;
    private String username;
    private String name;
    private String email;
    private String state;
    @JsonProperty("is_locked")
    private Boolean locked;
    private Instant createdAt;
    private Boolean isAdmin;

    @Override
    public String toString() {
        return "Account{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", name='" + name + '\'' +
                ", email='" + email + '\'' +
                ", state='" + state + '\'' +
                ", locked=" + locked +
                ", createdAt=" + createdAt +
                ", isAdmin=" + isAdmin +
                '}';
    }

}
